Skip to content

Conversation

@allison-li-1016
Copy link
Contributor

@allison-li-1016 allison-li-1016 commented Nov 13, 2024

closes #93

Estimated review time

small

Summary

Allows for initial internal glucose concentrations to be passed in as a parameter. By default, this value is set to 0.

<population.process process="metabolism" id="INITIAL_GLUCOSE_CONCENTRATION" value="0" unit="fmol" description="initial cell internal glucose concentration"/>

Description of changes

  • Added initial glucose concentration parameter to all PatchProcessMetabolism classes (simple, random, complex, medium)
  • Added default value of 0 initial glucose concentration to parameter.xml file

Description of how to review changes

  • Should be able to pass in initial concentration as part of the input file now

… metabolism classes, adding default parameter value to parameters.xml
private final double atpProductionRate;

/** Initial cell internal glucose concentration [fmol]. */
private final double initGluc;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since initGluc is only used in the constructor, I think you can just inline the variable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed !

Copy link
Member

@jessicasyu jessicasyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Member

@cainja cainja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that this value represents a concentration...

<population.process process="metabolism" id="CONSTANT_GLUCOSE_UPTAKE_RATE" value="929.88" unit="fmol glucose/min/M glucose" description="constant glucose uptake rate" />
<population.process process="metabolism" id="CONSTANT_ATP_PRODUCTION_RATE" value="4.9817" unit="fmol ATP/cell/min" description="constant ATP production rate" />
<population.process process="metabolism" id="CONSTANT_VOLUME_GROWTH_RATE" value="2.819" unit="um^3/min" description="constant volume growth rate"/>
<population.process process="metabolism" id="INITIAL_GLUCOSE_CONCENTRATION" value="0" unit="fmol" description="initial cell internal glucose concentration"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't love this being 0 by default

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What default values would you suggest?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this value being 0 the source of the bug that you had identified before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - it probably makes sense to set it to the average(?) internal glucose amt of engineered cells, Im just not sure what that is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now Ill set it as 30fmol since thats what CARCADE seems to be giving me, but we can revisit this value

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@allison-li-1016 @cainja Possible alternative: keep the parameter as a concentration that matches the glucose concentration and do the conversion to mass in the constructor by multiplying by cell volume?

@allison-li-1016 allison-li-1016 merged commit b7cf24b into develop Nov 14, 2024
@allison-li-1016 allison-li-1016 deleted the allli/initial-glucose-parameter branch November 14, 2024 18:23
@jessicasyu jessicasyu added type: feature Improvement or additions to the code base package: patch Related to the patch implementation labels Nov 15, 2024
@jessicasyu jessicasyu changed the title Pass in Initial Glucose Concentration as a parameter for PatchProcessMetabolism Pass initial glucose concentration as parameter for metabolism modules Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: patch Related to the patch implementation type: feature Improvement or additions to the code base

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pass in Initial Glucose Concentration as a parameter for PatchProcessMetabolism

4 participants